<html>
<head>
<meta name="layout" content="main" />
<title></title>
<style type="text/css">
label {
	float: left;
	width: 80px;
}
</style>
</head>
<body>
	<g:if test="${session.user}">
		<g:if test="${flash.message}">
			<div class="message" style="margin-top:35px;">
				${flash.message}
			</div>
		</g:if>
	</g:if>
	<g:else>
		<div class="message">
			${flash.message}
		</div>
		<g:form controller="user" action="login">
			<div style="width: 300px; padding-left: 220px; margin-top: 10px;">
				<div style="margin-bottom: 10px">
					<label>Username:</label><input type="text" name="username" />
				</div>
				<div style="margin-bottom: 10px">
					<label>Password:</label><input type="password" name="password" />
				</div>
				<label>&nbsp;</label><input type="submit" value="Login">
			</div>
		</g:form>
	</g:else>
</body>
</html>